import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ValidationPipe } from '@nestjs/common';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  app.setGlobalPrefix('wx');
  app.useGlobalPipes(new ValidationPipe({
    validationError: {
      target: false,
    },
    transform: false,
  }));
  await app.listen(3000);
}

bootstrap();
